package com.hnxx.studentsystem.service;

import com.hnxx.studentsystem.dao.StudentDao;
import com.hnxx.studentsystem.pojo.Student;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class StudentService {
    @Autowired
    StudentDao studentDao;

    public List<Student> findAll(){
        return studentDao.findAll();
    }

}
